<fieldset class="layui-elem-field pear-container">
    <legend>提示：</legend>
    <div class="layui-field-box">
        修改后不会对正在运行的任务产生影响，重启任务后才能生效。
    </div>
</fieldset>
<form id="edit-form" class="layui-form" lay-filter="edit-form" onsubmit="return false;">
    <input type="hidden" name="id" value="#(bean.id??)">
    <input type="hidden" name="status" value="#(bean.status??)">
    <div class="layui-card">
        <div class="layui-card-body">
            <div class="layui-form-item">
                <label class="layui-form-label required">任务名称</label>
                <div class="layui-input-block">
                    <input type="text" name="name" value="#(bean.name??)" lay-verify="required" autocomplete="off" placeholder="请输入任务名称" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label required">任务分组</label>
                <div class="layui-input-block">
                    <select name="group">
                        <option value="">-- 请选择 --</option>
                    #DICTS(type="job_group")
                    #for(item : dicts)
                        <option value="#(item.value)"#if(item.value == bean.group??) selected#end>#(item.label)</option>
                    #end
                    </select>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label required">是否并发</label>
                <div class="layui-input-inline">
                    <input type="radio" name="isConcurrent" value="true" title="允许" #if(bean.isConcurrent??) checked #end>
                    <input type="radio" name="isConcurrent" value="false" title="禁止" #if(!bean.isConcurrent??) checked #end>
                </div>
                <label class="layui-form-label required">调度日志</label>
                <div class="layui-input-inline">
                    <input type="radio" name="isLog" value="true" title="记录" #if(bean.isLog??) checked #end>
                    <input type="radio" name="isLog" value="false" title="不记录" #if(!bean.isLog??) checked #end>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label required">目标字符串</label>
                <div class="layui-input-block">
                    <input type="text" name="target" value="#(bean.target??)" lay-verify="required" autocomplete="off" placeholder="请输入任务目标字符串" class="layui-input">
                    <div class="layui-form-mid layui-word-aux"><i class="layui-icon layui-icon-about"></i>&nbsp;Bean调用示例：demoTask.params('demo')
                    <br><i class="layui-icon layui-icon-about"></i>&nbsp;Class类调用示例：cn.hg.solon.youcan.job.demo.DemoTask.params('demo')
                    <br><i class="layui-icon layui-icon-about"></i>&nbsp;参数说明：支持字符串，布尔类型，长整型，浮点型，整型</div>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label required">执行表达式</label>
                <div class="layui-input-block">
                    <input type="text" name="cron" value="#(bean.cron??)" lay-verify="required" autocomplete="off" placeholder="请输入执行表达式" class="layui-input">
                    <div class="layui-form-mid layui-word-aux"><i class="layui-icon layui-icon-about"></i>&nbsp;必须为合法的Cron字串（非Quartz），如：3-18/5 * * * * </div>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">备注</label>
                <div class="layui-input-block">
                    <textarea name="remark" style="height: 30px;" autocomplete="off" placeholder="请输入备注内容" class="layui-textarea">#(bean.remark??)</textarea>
                </div>
            </div>
        </div>
    </div>
    <div class="layui-form-item" style="display: none;">
        <div class="layui-input-block">
            <button id="submit-button" type="submit" class="layui-btn layui-btn-sm" lay-submit lay-filter="submit-button">
                <i class="layui-icon layui-icon-ok"></i> 提交
            </button>
        </div>
    </div>
</form>
#include("/admin/_common/foot.html")

